unit UPesquisaItensPedidoCompra;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, Grids, DBGrids;

type
  TFPesquisaItemPedidoCompra = class(TForm)
    DBGItens: TDBGrid;
    Label1: TLabel;
    BtnFechar: TBitBtn;
    procedure FormCreate(Sender: TObject);
    procedure BtnFecharClick(Sender: TObject);
    procedure Label1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FPesquisaItemPedidoCompra: TFPesquisaItemPedidoCompra;

implementation

uses UPedidoCompraNovo;

{$R *.dfm}

procedure TFPesquisaItemPedidoCompra.FormCreate(Sender: TObject);
begin

  Self.Constraints.MaxHeight := 340;
  Self.Constraints.MinHeight := 340;

  Self.Constraints.MaxWidth  := 689;
  Self.Constraints.MinWidth  := 689;

  DBGItens.DataSource := FPedidoCompraNovo.DSItens;

end;

procedure TFPesquisaItemPedidoCompra.BtnFecharClick(Sender: TObject);
begin
  close;
end;

procedure TFPesquisaItemPedidoCompra.Label1Click(Sender: TObject);
begin
  BtnFechar.Click;
end;

end.
